package com.wxx.design.factorymethod;

/**
 * @author: Jetwang
 * @date: 2022/4/8 21:31
 * @description: VideoFactory
 * @version: 1.0
 */
public abstract class AbstractVideoFactory {
    /*public static AbstractVideo getVideo(String type) {
        if ("Java".equals(type)) {
            return new JavaVideo();
        }
        if ("Python".equals(type)) {
            return new PythonVideo();
        }
        return null;
    }*/

    /*public static AbstractVideo getVideo(Class c) {
        AbstractVideo video = null;
        try {
            video = (AbstractVideo) Class.forName(c.getName()).newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return video;
    }*/

    public abstract AbstractVideo getVideo();
}
